﻿using RbacPermissionManage.DoMain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RbacPermissionManage.Application.Menus.Dto
{
    public class TreeDto
    {
        /// <summary>s
        /// 菜单主键
        /// </summary>
        public int MenuId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName { get; set; }

        /// <summary>
        /// 菜单类型
        /// </summary>
        public MenuType MenuType { get; set; }

        /// <summary>
        /// 路由名称
        /// </summary>
        public string? RouteName { get; set; }

        /// <summary>
        /// 路由路径
        /// </summary>
        public string? RoutePath { get; set; }

        /// <summary>
        /// 组件路径
        /// </summary>
        public string? ComponentPath { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string? Icon { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        public string? Permission { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 子级
        /// </summary>
        public List<TreeDto> Children { get; set; }

        /// <summary>
        /// 父Id
        /// </summary>
        public int ParentId { get; set; }
    }
}
